# 不可以修改或替换
tuple1 = (123, "abc")
# tuple1[1] = False
tuple2 = tuple(range(1, 10))  # 随机从1-9数字变化，加上tuple关键字才能成元组
print(tuple2)
# 遍历，指的是读取元组的内容
tuple3 = ("大米", "小米", "玉米", "红枣")
for i in tuple3:
    print(i)     # 纯内容输出
for k in enumerate(tuple3):
    print(k)     # 加入下标+内容
